package com.lagou.edu.pojo;

import java.util.*;

public class DITest {

    private String[] testArray;
    private Set<String> testSet;
    private Map<String, String> testMap;
    private Properties testProperties;
    private List<String> testList;

    public String[] getTestArray() {
        return testArray;
    }

    public void setTestArray(String[] testArray) {
        this.testArray = testArray;
    }

    public Set<String> getTestSet() {
        return testSet;
    }

    public void setTestSet(Set<String> testSet) {
        this.testSet = testSet;
    }

    public Map<String, String> getTestMap() {
        return testMap;
    }

    public void setTestMap(Map<String, String> testMap) {
        this.testMap = testMap;
    }

    public Properties getTestProperties() {
        return testProperties;
    }

    public void setTestProperties(Properties testProperties) {
        this.testProperties = testProperties;
    }

    public List<String> getTestList() {
        return testList;
    }

    public void setTestList(List<String> testList) {
        this.testList = testList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DITest diTest = (DITest) o;
        return Arrays.equals(testArray, diTest.testArray) && Objects.equals(testSet, diTest.testSet) && Objects.equals(testMap, diTest.testMap) && Objects.equals(testProperties, diTest.testProperties) && Objects.equals(testList, diTest.testList);
    }

    @Override
    public int hashCode() {
        int result = Objects.hash(testSet, testMap, testProperties, testList);
        result = 31 * result + Arrays.hashCode(testArray);
        return result;
    }

    @Override
    public String toString() {
        return "DITest{" +
                "testArray=" + Arrays.toString(testArray) +
                ", testSet=" + testSet +
                ", testMap=" + testMap +
                ", testProperties=" + testProperties +
                ", testList=" + testList +
                '}';
    }
}
